package com.junxonline.instant.dao.mapper.config;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.junxonline.instant.dao.entity.model.config.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 系统用户表Mapper
 *
 * @author JunX
 * @date 2021-06-24
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    IPage<User> queryList(Page<User> page, @Param("ew") Wrapper<User> wrapper);

    User selectById(@Param("id") Long id);

    Long selectOrgById(@Param("id") Long id);

}
